package com.lrs.java.j2se_self.lastJava;

public class TestTread {
	public static void main(String[] args){
		Runner1 r = new Runner1();
		//r.run();
		//Thread t = new Thread(r);
		//t.start();
		r.start();
		
		for(int j = 0; j < 100;j++){
			System.out.println("the main thread " + j);
			
		}
	}
}

class Runner1 extends Thread {
//class Runner1 implements Runnable {
	public void run(){
		for(int i = 0; i < 100; i++){
			System.out.println("the thread " + i);
		}
	}
}